package com.photoeditor.demo.ui.widget.collage;

import android.content.Context;
import android.util.AttributeSet;

import com.photoeditor.R;
import com.photoeditor.demo.ui.widget.CustomNumSeekBar;

/**
 * Created by edward on 17-7-19.
 */

public class CollageSeekBar extends CustomNumSeekBar {
    public CollageSeekBar(Context context, AttributeSet attrs) {
        super(context, attrs);
        setProgressTumb(getResources().getDrawable(R.drawable.ic_image_edit_seekbar_progress));
        setProgressBgTumb(getResources().getDrawable(R.drawable.bg_image_edit_seekbar_progress));
        setTextColor(getResources().getColor(R.color.image_edit_seekbar_text_color));
        setDefaultColorStyle(getResources().getColor(R.color.accent_color));
    }

    @Override
    protected int getCustomMaxTextWidth() {
        return getResources().getDimensionPixelSize(R.dimen.image_edit_seekbar_touch_height);
    }
}
